<?php class connect {	   private static $pdo = false;   private function __construct() {} // Blokujemy domyślny konstruktor publiczny   private function __clone(){} //Uniemozliwia utworzenie kopii obiektu    private $dbName = '';   private $dbHost = '';   private $dbLogin = '';   private $dbPassword = '';   function singleton()   {		   try	   {		   	if ( self::$pdo == false ){//               exit(DB_NAME);              //self::$pdo = new PDO('mysql:host='.DB_HOST.';dbname='.DB_NAME, DB_USER, DB_PASS);//			  self::$pdo -> setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);                  			    self::$pdo = new PDO('pgsql:dbname='.DB_NAME.';host='.DB_HOST,DB_USER,DB_PASS);                self::$pdo -> setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);		     } 		     return self::$pdo; 	   }	   catch(PDOException $e)	   {	   		echo'Serwis nie czynny';exit;	   }            } }?>